import request from "../utils/request.js";

/**
 * @description: 获取轮播图
 * @return {object}
 */
 export function findAllBannerListByType(params) {
  return request({
    url: '/client/banner/findAllListByType',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取海报
 * @return {object}
 */
 export function posterList(params) {
  return request({
    url: '/client/banner/posterList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 入驻申请
 * @return {object}
 */
 export function merchantApply(params) {
  return request({
    url: '/merchant/merchantApply',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取作品的全部类型
 * @return {object}
 */
 export function artworksTypeAllList() {
  return request({
    url: '/artworks/artworksTypeAllList',
    method: 'get',
  })
}

/**
 * @description: 获取付费定制作品的全部类型
 * @return {object}
 */
export function makeArtworksTypeAllList() {
  return request({
    url: '/artworks/makeArtworksTypeAllList',
    method: 'get',
  })
}

/**
 * @description: 用户获取入驻信息
 * @return {object}
 */
 export function merchantInfoByUserId(params) {
  return request({
    url: '/merchant/merchantInfoByUserId',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取随机口令
 * @return {object}
 */
 export function randomCode(params) {
  return request({
    url: '/merchant/randomCode',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取随机口令
 * @return {object}
 */
export function createWeixinArticleUrl(params) {
  return request({
    url: '/merchant/createWeixinArticleUrl',
    method: 'post',
    data: params
  })
}

/**
 * @description: 查询发布状态
 * @return {object}
 */
export function queryPublishStatus(params) {
  return request({
    url: '/merchant/queryPublishStatus',
    method: 'get',
    data: params
  })
}

/**
 * @description: 创建自挂载微信二维码
 * @return {object}
 */
export function createMountQrcode(params) {
  return request({
    url: '/merchant/createQrcode',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取生成记录
 * @return {object}
 */
export function articUrlLog(params) {
  return request({
    url: '/merchant/articUrlLog',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取站点详情
 * @return {object}
 */
export function platformInfoByBusinessId(params) {
  return request({
    url: '/applet/business/platformInfoByBusinessId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 小程序程序首页创作者推荐列表
 * @return {object}
 */
export function recommendMerchantList(params) {
  return request({
    url: '/merchant/recommendMerchantList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 小程序程序创作者列表
 * @return {object}
 */
export function authorList(params) {
  return request({
    url: '/merchant/authorList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取达人主页二维码
 * @return {object}
 */
 export function createwxMiniAuthorQrcode(params) {
  return request({
    url: '/merchant/createwxMiniAuthorQrcode',
    method: 'get',
    data: params
  })
}

/**
 * @description: 小程序程序首页创作品推荐列表
 * @return {object}
 */
export function recommendArtworksList(params) {
  return request({
    url: '/artworks/recommendArtworksList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据id获取创作者信息
 * @return {object}
 */
export function authorInfoById(params) {
  return request({
    url: '/merchant/authorInfoById',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取抖音免广告码
 * @return {object}
 */
export function createDouYinQrCode(params) {
  return request({
    url: '/merchant/createDouYinQrCode',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据用户id和创作者id获取作品信息
 * @return {object}
 */
export function artworksListByMerchantId(params) {
  return request({
    url: '/artworks/artworksListByMerchantId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据用户id和创作者id获取作品信息
 * @return {object}
 */
export function artworksInfoById(params) {
  return request({
    url: '/artworks/artworksInfoById',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据用户id和创作者id获取作品信息
 * @return {object}
 */
export function randomRecommendArtworksList(params) {
  return request({
    url: '/artworks/randomRecommendArtworksList',
    method: 'get',
    data: params
  })
}

// 我的作品
export function myArtworksListByMiniProgram(params) {
  return request({
    url: '/artworks/myArtworksListByMiniProgram',
    method: 'get',
    data: params
  })
}

/**
 * @description: 收藏状态更新
 * @return {object}
 */
export function artworksCollectUpdate(params) {
  return request({
    url: '/artworksCollect/artworksCollectUpdate',
    method: 'post',
    data: params
  })
}

// 创建作品海报
export function createPosterQrcode(params) {
  return request({
    url: '/artworks/createPosterQrcode',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据用户id和创作者id获取作品信息
 * @return {object}
 */
export function artworksCollectStatus(params) {
  return request({
    url: '/artworksCollect/artworksCollectStatus',
    method: 'get',
    data: params
  })
}

/**
 * @description: 通过作品类型查询收藏列表
 * @return {object}
 */
export function collectListByArtworksType(params) {
  return request({
    url: '/artworksCollect/collectListByArtworksType',
    method: 'get',
    data: params
  })
}

/**
 * @description: 根据用户id和创作者id获取作品信息
 * @return {object}
 */
export function submitOrder(params) {
  return request({
    url: '/artworksOrder/submitOrder',
    method: 'post',
    data: params
  })
}

// 获取用户下载历史列表
export function downloadListByArtworksType(params) {
  return request({
    url: '/artworksDownload/downloadListByArtworksType',
    method: 'get',
    data: params
  })
}

// 校验当前用户下载的次数是否超过限制
export function checkingDownloadStatus(params) {
  return request({
    url: '/artworksDownload/checkingDownloadStatus',
    method: 'get',
    data: params
  })
}

// 作者列表
export function artworksListByMiniProgram(params) {
  return request({
    url: '/artworks/artworksListByMiniProgram',
    method: 'post',
    data: params
  })
}

/**
 * @description: 公告问题列表
 * @return {object}
 */
 export function questionListByBusinessId(params) {
  return request({
    url: '/question/questionListByBusinessId',
    method: 'get',
    data: params
  })
}

/**
 * @description: 详情
 * @return {object}
 */
export function questionDetailById(params) {
  return request({
    url: '/question/questionDetailById',
    method: 'get',
    data: params
  })
}

/**
 * @description: 作品收益数据
 * @return {object}
 */
export function userIncome(params) {
  return request({
    url: '/authorEarning/userIncome',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取详情作品下载统计详情根据时间
 * @return {object}
 */
 export function userIncomeByDate(params) {
  return request({
    url: '/authorEarning/userIncomeByDate',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取用户订单ecpm走势按月份
 * @return {object}
 */
 export function getUserArtworksOrderByMonth(params) {
  return request({
    url: '/authorEarning/getUserArtworksOrderByMonth',
    method: 'get',
    data: params
  })
}

/**
 * @description: 收益下载数据
 * @return {object}
 */
 export function artworksDownloadList(params) {
  return request({
    url: '/authorEarning/artworksDownloadList',
    method: 'post',
    data: params
  })
}

/**
 * @description: 会员订单收益信息
 * @return {object}
 */
 export function userMemberOrderIncome(params) {
  return request({
    url: '/authorEarning/userMemberOrderIncome',
    method: 'get',
    data: params
  })
}

/**
 * @description: 获取会员订单明细列表
 * @return {object}
 */
 export function memberOrderList(params) {
  return request({
    url: '/authorEarning/memberOrderList',
    method: 'post',
    data: params
  })
}

/**
 * @description: 模板背景图片
 * @return {object}
 */
export function createWallpaperTemplate(params) {
  return request({
    url: '/client/makeWallpaperTemplate/createWallpaperTemplate',
    method: 'post',
    data: params
  })
}

/**
 * @description: 模板背景图片
 * @return {object}
 */
export function wallpaperTemplateList(params) {
  return request({
    url: '/makeWallpaperTemplate/wallpaperTemplateList',
    method: 'post',
    data: params
  })
}

/**
 * @description: 价格自定义
 * @return {object}
 */
export function allMemberSetPriceList(params) {
  return request({
    url: '/vip/allMemberSetPriceList',
    method: 'get',
  })
}

/**
 * @description: 保存价格自定义
 * @return {object}
 */
export function sumbitMerchantVipPirce(params) {
  return request({
    url: '/vip/sumbitMerchantVipPirce',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取自定义价格配置列表
 * @return {object}
 */
export function queryVipPriceList(params) {
  return request({
    url: '/vip/queryVipPriceList',
    method: 'get',
    data: params
  })
}

// /**
//  * @description: 根据地址区域获取广告信息
//  * @return {object}
//  */
//  export function randomAdvByAddressInfo(params) {
//   return request({
//     url: '/adv/randomAdvByAddressInfo',
//     method: 'get',
//     data: params
//   })
// }

// /**
//  * @description: 根据地址区域获取广告信息
//  * @return {object}
//  */
//  export function randomAdv(params) {
//   return request({
//     url: '/adv/randomAdv',
//     method: 'get',
//     data: params
//   })
// }

/**
 * @description: 获取图文定制分类-列表
 * @return {object}
 */
export function makeTemplateCategoryList(params) {
  return request({
    url: '/playCategory/makeTemplateCategoryList',
    method: 'get',
    data: params
  })
}

/**
 * @description: 图片合成
 * @return {object}
 */
export function makeTemplateAllListByToolId(params) {
  return request({
    url: '/makeWallpaperTemplate/makeTemplateAllListByToolId',
    method: 'post',
    data: params
  })
}

/**
 * @description: 获取阿里云上传配置
 * @return {object}
 */
export function getAliyunCosSignature(params) {
  return request({
    url: '/common/upload/getAliyunCosSignature',
    method: 'get',
    data: params
  })
}

// 图文分类
export function picCategoryList(params) {
  return request({
    url: '/playCategory/picCategoryList?tool_type=8',
    method: 'get',
    data: params
  })
}
